

# open("文件路径", "打开模式", "编码格式")

path = "D:\\pythonDev\\git.txt"

file = open(path, 'r', encoding="UTF-8")
txt = file.read()

print(txt)


file.close()